package com.cg.Controller;

import com.cg.client.SaleClient;
import com.cg.dto.ForecastPageDto;
import com.cg.dto.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @ClassName ForecastController
 * @Description TODO
 * @Author CG
 * @Date 2023/12/25 19:05
 **/
@RestController
@RequestMapping("/forecast")
public class ForecastController {

    @Resource
    private SaleClient saleClient;

    /**
     * 查询销售预测信息列表
     */
    @PostMapping("/list")
    public Result<Map<String,Object>> list(ForecastPageDto forecastPageDto){
        return saleClient.list(forecastPageDto);
    }
}
